﻿using System;
using FluentNHibernate;
using FluentNHibernate.Automapping;

namespace Todoosie.Data.NHibernate
{
    /// <summary>
    /// TODO: Finalize TodoosieConfiguration
    /// </summary>
    public class TodoosieConfiguration : DefaultAutomappingConfiguration
    {
        public override bool ShouldMap(Type type)
        {
            return type.Namespace == "Todoosie.Data.NHibernate.Entities";
        }

        public override string GetComponentColumnPrefix(Member member)
        {
            return member.PropertyType.Name + "_";
        }
    }
}
